package org.glut.wechat.chat.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.glut.wechat.chat.domain.User;

/**
* 用户表 Mapper
*
* @author hjd
* @since 2025-08-21 21:37
*/
@Mapper
public interface UserMapper {
    
    @Select("SELECT * FROM user WHERE id = #{id}")
    User selectById(Integer id);
    
    @Select("SELECT * FROM user WHERE username = #{username}")
    User selectByUsername(String username);
}
